﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="header">
    <!--[if lte IE 9]>
    <div id="warning_info" class="text-warning fade in mb_0">
        <button data-dismiss="alert" class="close" type="button">×</button>
        <strong>您正在使用低版本浏览器，</strong> 在本页面的显示效果可能有差异。
        建议您升级到
        <a href="http://www.google.cn/intl/zh-CN/chrome/" target="_blank">Chrome</a>
        或以下浏览器：
        <a href="www.mozilla.org/en-US/firefox/?" target="_blank">Firefox</a> /
        <a href="http://www.apple.com.cn/safari/" target="_blank">Safari</a> /
        <a href="http://www.opera.com/" target="_blank">Opera</a> /
        <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie" target="_blank">
            Internet Explorer 10</a>
    </div>
    <![endif]-->
    <!--[if lte IE 8]>
    <script>
        document.createElement('ng-include');
        document.createElement('ng-pluralize');
        document.createElement('ng-view');
        document.createElement('carousel');
        document.createElement('slide');

        // Optionally these for CSS
        document.createElement('ng:include');
        document.createElement('ng:pluralize');
        document.createElement('ng:view');
    </script>
    <![endif]-->

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit" />
    <title>欢迎登录管理平台</title>
    <link href="css/Admin/login.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.11.2.min.js"></script>
    <script src="css/Admin/cloud.js" type="text/javascript"></script>
    <script src="Scripts/SZHLCommon.js?jsver=5" type="text/javascript"></script>
    <style>
        .text-warning {
            color:#8a6d3b;
        }
        .mb_0 {
        margin-bottom:0px; 
        }
         #warning_info {
         margin-top:50px;
        padding:8px 35px 8px 14px;
        border:1px solid #fbeed5;
        position:fixed;
        z-index:2000;
        background-color:rgb(252,248,227);
        }

</style>
    <script type="text/javascript">

        $(function () { 
            $('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2 });
            $(window).resize(function () {
                $('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2 });
            })
            $(".loginbtn").click(function (e) {
                e.preventDefault();
                $(".loginbtn").text("正在登陆")
                $.getJSON('/API/SZHLAPI.ashx?Action=LOGIN', { "password": $("#userpasd").val(), "UserName": $("#username").val() }, function (resultData) {
                    if (resultData.ErrorMsg == "") {
                        ComFunJS.setCookie('szhlcode', resultData.Result);
                        ComFunJS.setCookie('fileapi', resultData.Result1.FileServerUrl);
                        location.href = "indexV3.html?ver=" + ComFunJS.getnowdate("yyyy-mm-dd");
                        ComFunJS.setCookie('username', $("#username").val(), 2000);
                        if ($("#isJZMM").prop("checked")) {
                            ComFunJS.setCookie('password', $("#userpasd").val(), 2000);
                        } else {
                            ComFunJS.setCookie('password',"", 2000);
                        }

                    } else {
                        alert(resultData.ErrorMsg);
                        $(".loginbtn").text("登录")
                    }
                })
            });
            if (ComFunJS.getQueryString("type") == "dls") {
                $(".loginbody span").after("<div style='font-size:20px; color:white; position:absolute; text-align:center;width:100%;'>代理商登录</div>");
            }
            if (ComFunJS.getQueryString("userName") && ComFunJS.getQueryString("pass")) {
                $("#username").val(ComFunJS.getQueryString("userName"));
                $("#userpasd").val(ComFunJS.getQueryString("pass"));
                $(".loginbtn").trigger('click');
            }else if (ComFunJS.getCookie("username") && ComFunJS.getCookie("password")) {
                $("#username").val(ComFunJS.getCookie("username"));
                $("#userpasd").val(ComFunJS.getCookie("password"));
                $("#isJZMM").attr("checked", "");
               // $(".loginbtn").trigger('click');
            }

        });
        function jptj(event) {
            if (event.keyCode == 13 || event.keyCode == 10) {
                $(".loginbtn").trigger('click');
            }
        }
      
    </script>
</head>
<body onkeypress="jptj(event)" style="background-color: #1c77ac; background-image: url(images/Login/light.png); background-repeat: no-repeat; background-position: center top; overflow: hidden;">
    <div id="mainBody">
        <div id="cloud1" class="cloud"></div>
        <div id="cloud2" class="cloud"></div>
    </div>

    <div class="logintop">
        <span>欢迎登录协同办公平台V3.0</span>
        <ul></ul>
    </div>
    <div class="loginbody">
        <span class="systemlogo" style="visibility: collapse"></span>

        <div class="loginbox">
            <ul>
                <li>
                    <input id="username" type="text" class="loginuser" autocomplete='off' />
                </li>
                <li>
                    <input id="userpasd" type="password" class="loginpwd" autocomplete='off' />
                </li>
                <li>
                    <button class="loginbtn">登录</button>
                    <label for="isJZMM" >
                        <input type="checkbox" id="isJZMM"  style="margin-right: 0; vertical-align: middle" /> 记住密码
                    </label>
                </li>
                <li>

                </li>
            </ul>

        </div>
    </div>
    <div class="loginbm">版权所有(神州互联)<span id="bowversion"></span></div>
</body>
</html>
